package com.geovis.emergency.spd.entity.pc.pojo.dto;

import com.geovis.common.core.constant.CommonConstants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 应急预案指挥模块-值班统计DTO
 * </p>
 *
 * @author 曾德实
 * @since 2022-04-30
 */
@Getter
@Setter
@ToString(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "PcDrillDutyStatisticDTO", description = "应急预案指挥模块-值班统计DTO")
public class PcDrillDutyStatisticDTO implements Serializable {

    @ApiModelProperty("组名称")
    private String groupName;

    @ApiModelProperty("应到人数")
    private Integer shouldNum;

    @ApiModelProperty("实到人数")
    private Integer realNum;

    @ApiModelProperty("人员列表")
    private List<DutyPersonDTO> detailList;

    @Getter
    @Setter
    @ToString(callSuper = true)
    @Accessors(chain = true)
    @ApiModel(value = "DutyPersonDTO", description = "应急预案指挥模块-签到明细统计DTO")
    public static class DutyPersonDTO {

        @ApiModelProperty("值班主键ID")
        private String dutyId;

        @ApiModelProperty("人员ID")
        private String personId;

        @ApiModelProperty("人员名称")
        private String personName;

        @ApiModelProperty("岗位名称")
        private String postName;

        @ApiModelProperty("岗位id")
        private String postId;

        @ApiModelProperty("是否签到：1-已签到 0-未签到")
        private String checkIn;

        @ApiModelProperty("组id")
        private String groupId;
        public DutyPersonDTO(String dutyId,String personId, String personName,String postName) {
            this.dutyId = dutyId;
            this.personId = personId;
            this.personName = personName;
            this.postName = postName;
            this.checkIn = CommonConstants.NO;
        }

    }
}
